package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.ActivityPrizeTypeCreateDTO;
import net.lanelife.casino.caipiao.dto.admin.ActivityPrizeTypeDTO;
import net.lanelife.casino.caipiao.dto.admin.ActivityPrizeTypeTable;
import net.lanelife.casino.caipiao.dto.admin.ActivityPrizeTypeUpdateDTO;
import net.lanelife.casino.caipiao.entity.ActivityPrizeType;
import net.lanelife.casino.caipiao.service.api.IActivityPrizeTypeService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = ActivityPrizeTypeController.PATH)
public class ActivityPrizeTypeController extends CRUDController<ActivityPrizeType, Integer, ActivityPrizeTypeDTO, ActivityPrizeTypeCreateDTO, ActivityPrizeTypeUpdateDTO, ActivityPrizeTypeTable<ActivityPrizeTypeDTO>> {
	
	public static final String PATH = "/activity-prize-type";
	
	public ActivityPrizeTypeController() {
		super(PATH);
	}

	@Autowired
	private IActivityPrizeTypeService activityPrizeTypeService;
	
	@Override
	protected IGenericService<ActivityPrizeType, Integer> getService() {
		return activityPrizeTypeService;
	}

}
